package com.pangda.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author xjy
 * @since 2024-06-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_role")
public class SysRoleDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色ID")
    @TableId(value = "role_id", type = IdType.AUTO)
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty(value = "角色键")
    @TableField("role_key")
    private String roleKey;

    @ApiModelProperty(value = "排序")
    @TableField("role_sort")
    private Integer roleSort;

    @ApiModelProperty(value = "状态 0-正常、1-停用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "是否为管理员 0-是、1-不是")
    @TableField("admin")
    private Boolean admin;

    @ApiModelProperty(value = "数据范围")
    @TableField("data_scope")
    private String dataScope;

    @ApiModelProperty(value = "删除标记  0-正常 1-已删除")
    @TableField("del_flag")
    private Integer delFlag;

    @ApiModelProperty(value = "部门检查严格性 0-严格  1-不严格")
    @TableField("dept_check_strictly")
    private Boolean deptCheckStrictly;

    @ApiModelProperty(value = "菜单检查严格性 0-严格  1-不严格")
    @TableField("menu_check_strictly")
    private Boolean menuCheckStrictly;

    @ApiModelProperty(value = "标记")
    @TableField("flag")
    private Boolean flag;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "菜单ID列表")
    private List<Long> menuIds;

    @ApiModelProperty(value = "部门ID列表")
    private List<Integer> deptIds;

}
